<h1>Listing multimedia</h1>

<table>
  <tr>
    <th>Thumb</th>
	<th>Submission</th>
    <th>Time</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @multimedia.each do |multimedium| %>
  <tr>
    <td><%= link_to image_tag(multimedium.image_url(:thumb).to_s), multimedium.image_url.to_s  if multimedium.image? %>
	    <%= link_to image_tag("video.png", :size => "100x100"), multimedium.video_url.to_s if multimedium.video?%>
	    <%= link_to image_tag("audio.png", :size => "100x100"), multimedium.audio_url.to_s if multimedium.audio?%></td>

	<td><%= multimedium.submission_id %></td>
	<td><%= multimedium.updated_at %></td>
    <td><%= link_to 'Show', multimedium %></td>
    <td><%= link_to 'Edit', edit_multimedium_path(multimedium) %></td>
    <td><%= link_to 'Destroy', multimedium, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Multimedium', new_multimedium_path %>
